<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$title} - 我网「wooo.wang」</title>
    <meta name="Keywords" content="{$title},我网,文档,社区,知识,经验"/>
    <meta name="Description"
          content="{$description}我网主要为多人协作书写文档（知识、经验和见解）提供平台，帮助他人更有效率的获取知识、学习和成长！我网[wooo.wang],分享与收获知识、经验、见解的团体协作书写平台！"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
    <link href="__STATIC__/common/img/favicon.ico" type="image/x-icon" rel="shortcut icon">
    <link rel="stylesheet" href="__STATIC__/common/css/normalize.css">
    <block name="css"></block>
    <link rel="stylesheet" href="__STATIC__/bbs/css/main.css?v=__VERSION__">
</head>
<body>
<header>
    <div class="container clearfix">
        <div class="logo">
            <a href="//bbs.wooo.wang" class="logo-title">@ BBS</a><span class="diviter"></span><a href="//bbs.wooo.wang/{$bbs['id']}">{$bbs['name']}</a>
        </div>
        <div class="right clearfix">
            <form action="" class="search-form left hide">
                <div class="search">
                    <span class="icon-search"></span>
                    <input type="text" placeholder="搜索">
                </div>
            </form>
            <ul class="nav right">
                <if condition="UID">
                    <li class="user">
                        <a href="//wooo.wang/u/{:UID}" id="user"><img src="{$user.avatar}">{$user.nick}</a>
                    </li>
                    <else/>
                    <li>
                        <a href="//wooo.wang/qqlogin"><span class="icon-qq"></span>&nbsp;&nbsp;登 录</a>
                    </li>
                </if>
            </ul>
        </div>
    </div>
</header>
<section class="container main">
    {$sysNotice}
    <div class="index-container clearfix">
        <div class="index-main">
            <div class="panel">
                <div class="panel-body">
                    <div class="tips">
                        <ul class="tips-list">
                            <li>请注意单词拼写，以及中英文排版，<a href="https://github.com/sparanoid/chinese-copywriting-guidelines">参考此页</a>
                            </li>
                            <li>支持 Markdown 格式, <strong>**粗体**</strong>、~~删除线~~、<code>`单行代码`</code>, 更多语法请见这里 <a href="https://github.com/riku/Markdown-Syntax-CN/blob/master/syntax.md">Markdown 语法</a>
                            </li>
                            <li>支持上传图片，格式限制 - jpg, png, gif</li>
                            <li>感谢有你，我将尽我最大的努力将系统开发得更好</li>
                        </ul>
                    </div>
                    <form action="{:U('/edit/'.$bbs['id'])}" method="post" id="form">
                        <input type="hidden" name="html" id="html">
                        <div class="form-group">
                            <select name="cid" tabIndex="1">
                                <option value="0">默认</option>
                                <volist name="cate" id="vo">
                                    <option value="{$key}">{$vo}</option>
                                </volist>
                            </select>
                        </div>
                        <div class="form-group">
                            <input name="title" id="title" type="text" placeholder="请填写标题" tabIndex="2">
                        </div>
                        <div class="editor">
                            <div class="editor-header">
                                <a href="javascript:void(0)" id="imgBtn"><span class="icon-image"></span></a><a
                                    href="javascript:void(0)" id="previewBtn" class="preview"><span
                                    class="icon-switch"></span></a>
                            </div>
                            <div class="editor-body">
                                <textarea id="content" name="" tabIndex="3" placeholder="编辑内容..."></textarea>
                                <div class="md-preview wooo hide" id="shadeSec"></div>
                            </div>
                            <p class="editor-footer"><span>Ctrl + Enter</span>&nbsp;&nbsp;&nbsp;<a
                                    href="javascript:void(0)" id="submitBtn" tabIndex="4">发 起</a></p>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="index-aside">
            <div class="panel">
                <div class="panel-header">
                    <h3 class="panel-title">广告</h3>
                </div>
                <div class="panel-body">
                    <volist name="ad" id="vo">
                        <a href="{$vo.url}" target="_blank"><img width="100%" src="{$vo.img}" title="{$vo.desc}"></a>
                    </volist>
                </div>
            </div>
        </div>
    </div>
</section>
<footer>
    <ul class="container clearfix">
        <li><a href="//wooo.wang">主页</a></li>
        <li><a href="//wooo.wang/suggest">建议</a></li>
        <li><a href="//wooo.wang/links">友链</a></li>
        <li><a href="//wooo.wang/connect">联系</a></li>
        <li><a href="//wooo.wang/about">关于</a></li>
        <li><a href="//wooo.wang/donate" class="red">捐赠</a></li>
        <li><a href="//wooo.wang">wooo.wang @2015-2016.</a></li>
    </ul>
</footer>
<div id="clearpop">
    <p id="clearpopTxt"></p>
</div>
<if condition="UID">
    <div class="modal hide" id="modal">
        <div class="modal-container" style="max-width:400px;margin-top:20%;">
            <div class="modal-content">
                <div class="modal-header">
                    <button class="modal-close" id="modalClose"><span>&times;</span></button>
                    <h4 class="modal-title">捐赠贡献度</h4>
                </div>
                <div class="modal-body">
                    <div class="form">
                        <div class="form-item">
                            <input type="number" name="gx" id="gxInput" data-gx="{$user.gx}" min="1" max="{$user.gx}"
                                   placeholder="请填写您捐赠的贡献度额度...">
                        </div>
                    </div>
                    <p class="edit-tip">您当前拥有 <strong class="red" id="userAllGx">{$user.gx}</strong> 点贡献度...</p>
                </div>
                <div class="modal-footer">
                    <button class="modal-no" id="modalNo">取消</button>
                    <button class="modal-save no-save" id="modalOk">确认</button>
                </div>
            </div>
        </div>
    </div>
</if>
<script src="__STATIC__/common/js/zepto.min.js?v=__VERSION__"></script>
<script src="__STATIC__/common/js/marked.js?v=__VERSION__"></script>
<script src="__STATIC__/common/js/qiniu/plupload.full.min.js?v=__VERSION__"></script>
<script src="__STATIC__/common/js/qiniu/qiniu.js?v=__VERSION__"></script>
<script>
    var token = "{$token|default = ''}", bid = "{$bbs.id}", uid = "{:UID}";
</script>
<script src="__STATIC__/bbs/js/publish.js?v=__VERSION__"></script>
<script src="__STATIC__/doc/js/bbs.js?v=__VERSION__"></script>
</body>
</html>